<!-- File: /app/View/Posts/edit.ctp -->

<h1>Edit Post</h1>
<script type="text/javascript">
    var ckEditor = CKEDITOR.replace('body');
    </script>
<?php
    echo $this->Form->create('Post', array('action' => 'edit'));
    echo $this->Form->input('title');
    echo $this->Form->textarea('body', array('id'=>'body','class'=>'ckeditor'));
    echo $this->Form->input('id', array('type' => 'hidden'));
    echo $this->Form->end('Save Post');
?>
